package com.manage.server.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.manage.server.pojo.Income;
import com.manage.server.pojo.QueryIncome;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zl
 * @since 2021-05-26
 */
public interface IncomeService
        extends IService<Income> {
     /**
      * <p>
      *  获得所有收支服务
      * </p>
      *
      * @author zl
      * @since 2021-05-26
      */
     List<Income> getAllIncome() ;
     /**
      * <p>
      *  更新收支服务
      * </p>
      *
      * @author zl
      * @since 2021-05-26
      * @return
      */
     boolean updateIncome(Income income);
     /**
      * <p>
      *  根据id删除收支服务
      * </p>
      *
      * @author zl
      * @since 2021-05-26
      */
     boolean deleteIncomeById(Integer id);
     /**
      * <p>
      *  添加收支服务
      * </p>
      *
      * @author zl
      * @since 2021-05-26
      */
     boolean addIncome(Income income);
     /**
      * <p>
      *  根据条件查询收支服务
      * </p>
      *
      * @author zl
      * @since 2021-05-26
      */
     List<Income> getIncomes(QueryIncome queryIncome);
}
